<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      slang-2.3.2
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;13.&nbsp;Programming
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="scons.html" title="SCons-3.1.2">Prev</a>
          <p>
            SCons-3.1.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="subversion.html" title=
          "Subversion-1.13.0">Next</a>
          <p>
            Subversion-1.13.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="slang" name="slang"></a>slang-2.3.2
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to slang
        </h2>
        <p>
          <span class="application">S-Lang</span> (slang) is an interpreted
          language that may be embedded into an application to make the
          application extensible. It provides facilities required by
          interactive applications such as display/screen management,
          keyboard input and keymaps.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://www.jedsoft.org/releases/slang/slang-2.3.2.tar.bz2">http://www.jedsoft.org/releases/slang/slang-2.3.2.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: c2d5a7aa0246627da490be4e399c87cb
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.5 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 29 MB (add 4 MB for tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.4 SBU (add 0.2 SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Slang Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="libpng.html" title=
          "libpng-1.6.37">libpng-1.6.37</a>, <a class="xref" href="pcre.html"
          title="PCRE-8.44">PCRE-8.44</a>, and <a class="ulink" href=
          "https://github.com/kkos/oniguruma">Oniguruma</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/slang">http://wiki.linuxfromscratch.org/blfs/wiki/slang</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Slang
        </h2>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            This package does not support parallel build.
          </p>
        </div>
        <p>
          Install <span class="application">slang</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr \
            --sysconfdir=/etc \
            --with-readline=gnu &amp;&amp;
make -j1</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>. Note that this will also create a static
          version of the library which will then be installed in the next
          step.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install_doc_dir=/usr/share/doc/slang-2.3.2   \
     SLSH_DOC_DIR=/usr/share/doc/slang-2.3.2/slsh \
     install-all &amp;&amp;

chmod -v 755 /usr/lib/libslang.so.2.3.2 \
             /usr/lib/slang/v2/modules/*.so</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--with-readline=gnu</code></em>: This
          parameter sets GNU <span class="application">Readline</span> to be
          used by the parser interface instead of the <span class=
          "application">slang</span> internal version.
        </p>
        <p>
          <span class="command"><strong>make
          install_doc_dir=/usr/share/doc/slang-2.3.2
          SLSH_DOC_DIR=/usr/share/doc/slang-2.3.2/slsh
          install-all</strong></span>: This command installs the static
          library as well as the dynamic shared version and related modules.
          It also changes the documentation installation directories to a
          versioned directory.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring slang
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="slang-config" name="slang-config"></a>
          </h3>
          <h4 class="title">
            <a id="slang-config" name="slang-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">~/.slshrc</code> and <code class=
            "filename">/etc/slsh.rc</code>
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">slsh</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libslang.{so,a} and numerous support
              modules</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/lib/slang,
              /usr/share/doc/slang-2.3.2 and /usr/share/slsh</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="slsh" name="slsh"></a><span class=
                    "term"><span class=
                    "command"><strong>slsh</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a simple program for interpreting <span class=
                    "application">slang</span> scripts. It supports dynamic
                    loading of <span class="application">slang</span> modules
                    and includes a <span class="application">Readline</span>
                    interface for interactive use.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-12 04:24:44 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="scons.html" title="SCons-3.1.2">Prev</a>
          <p>
            SCons-3.1.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="subversion.html" title=
          "Subversion-1.13.0">Next</a>
          <p>
            Subversion-1.13.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
